<template>
    <div>
        <Modal v-model="modal.detail" title="详情" width="1020">
            <div class="detail-info">
                <Row>
	<i-col span="11"><span class="detail-title">商品编号：</span><span v-text="form.goodsInfoId"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">店铺编号：</span><span v-text="form.goodsInfoShopId"></span></i-col>
<i-col span="11"><span class="detail-title">类目编号：</span><span v-text="form.goodsInfoCategoryId"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">商品标题：</span><span v-text="form.goodsInfoTitle"></span></i-col>
<i-col span="11"><span class="detail-title">商品图片：</span><span v-text="form.goodsInfoPicUrl"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">商品品牌：</span><span v-text="form.goodsInfoBrand"></span></i-col>
<i-col span="11"><span class="detail-title">图文详情：</span><span v-text="form.goodsInfoIntro"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">上架状态：</span><span v-text="form.goodsInfoShelfStatus"></span></i-col>
<i-col span="11"><span class="detail-title">销量：</span><span v-text="form.goodsInfoSaleCount"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">点击数：</span><span v-text="form.goodsInfoClickCount"></span></i-col>
<i-col span="11"><span class="detail-title">店铺Logo：</span><span v-text="form.goodsShopLogo"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">店铺标题：</span><span v-text="form.goodsShopTitle"></span></i-col>
<i-col span="11"><span class="detail-title">店铺等级：</span><span v-text="form.goodsShopLevel"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">SKU编号：</span><span v-text="form.goodsSkuId"></span></i-col>
<i-col span="11"><span class="detail-title">SKU图片：</span><span v-text="form.goodsSkuPicUrl"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">售卖标题：</span><span v-text="form.goodsSkuTitle"></span></i-col>
<i-col span="11"><span class="detail-title">原价：</span><span v-text="form.goodsSkuPrice"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">销售价：</span><span v-text="form.goodsSkuSalePrice"></span></i-col>
<i-col span="11"><span class="detail-title">库存：</span><span v-text="form.goodsSkuStockCount"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">上架状态：</span><span v-text="form.goodsSkuShelfStatus"></span></i-col>
<i-col span="11"><span class="detail-title">属性编号：</span><span v-text="form.goodsCategoryAttributeAttrId"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">属性排序：</span><span v-text="form.goodsCategoryAttributeAttrOrder"></span></i-col>
<i-col span="11"><span class="detail-title">是否属性组合：</span><span v-text="form.goodsCategoryAttributeIsAttrGroup"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">属性名称：</span><span v-text="form.goodsAttributeAttrName"></span></i-col>
<i-col span="11"><span class="detail-title">属性代码：</span><span v-text="form.goodsAttributeAttrCode"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">数据类型：</span><span v-text="form.goodsAttributeAttrType"></span></i-col>
<i-col span="11"><span class="detail-title">数据长度：</span><span v-text="form.goodsAttributeAttrLength"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">是否必填：</span><span v-text="form.goodsAttributeAttrRequired"></span></i-col>
<i-col span="11"><span class="detail-title">是否前端显示：</span><span v-text="form.goodsAttributeAttrDisplay"></span></i-col>
<i-col span="2"></i-col>
<i-col span="11"><span class="detail-title">属性值：</span><span v-text="form.goodsAttributeValueAttrValue"></span></i-col>

</Row>

            </div>
        </Modal>
    </div>
</template>

<script>
    import * as utils from '@/api/utils-v2'
    import * as ResponseStatus from '@/api/response-status'
    export default {
        name: 'GoodsSkuAttributeValueDetail',
        data() {
            return {
                modal: {
                    detail: false
                },
				dataDictCodes: ['IS_ACTIVE','GOODS_ATTRIBUTE_DISPLAY','GOODS_ATTRIBUTE_REQUIRED','GOODS_ATTRIBUTE_IS_GROUP','GOODS_SHELF_STATUS','SHOP_LEVEL'],
				dataDictItems: {},
                form: {
                    goodsInfoId: null,
goodsInfoShopId: null,
goodsInfoCategoryId: null,
goodsInfoTitle: null,
goodsInfoPicUrl: null,
goodsInfoBrand: null,
goodsInfoIntro: null,
goodsInfoShelfStatus: null,
goodsInfoSaleCount: null,
goodsInfoClickCount: null,
goodsShopLogo: null,
goodsShopTitle: null,
goodsShopLevel: null,
goodsSkuId: null,
goodsSkuPicUrl: null,
goodsSkuTitle: null,
goodsSkuPrice: null,
goodsSkuSalePrice: null,
goodsSkuStockCount: null,
goodsSkuShelfStatus: null,
goodsCategoryAttributeAttrId: null,
goodsCategoryAttributeAttrOrder: null,
goodsCategoryAttributeIsAttrGroup: null,
goodsAttributeAttrName: null,
goodsAttributeAttrCode: null,
goodsAttributeAttrType: null,
goodsAttributeAttrLength: null,
goodsAttributeAttrRequired: null,
goodsAttributeAttrDisplay: null,
goodsAttributeValueAttrValue: null,

                },
            }
        },
        computed: {},
        mounted() {},
        methods: {
            getDictItemsDisplayValue() {
                utils.getDataDict(this.dataDictCodes).then(response => {
                    if (response) {
                        this.dataDictItems = response
			                    
			                    // utils.getDetailDictItemDisplayValue(this, 'IS_ACTIVE', 'goodsInfoIsActive')
								utils.getDetailDictItemDisplayValue(this, 'GOODS_ATTRIBUTE_DISPLAY', 'goodsAttributeAttrDisplay')
								utils.getDetailDictItemDisplayValue(this, 'GOODS_ATTRIBUTE_REQUIRED', 'goodsAttributeAttrRequired')
								utils.getDetailDictItemDisplayValue(this, 'GOODS_ATTRIBUTE_IS_GROUP', 'goodsCategoryAttributeIsAttrGroup')
								utils.getDetailDictItemDisplayValue(this, 'GOODS_SHELF_STATUS', 'goodsSkuShelfStatus')
								utils.getDetailDictItemDisplayValue(this, 'GOODS_SHELF_STATUS', 'goodsInfoShelfStatus')
								utils.getDetailDictItemDisplayValue(this, 'SHOP_LEVEL', 'goodsShopLevel')
                    }
                }).catch(error => {
                    console.log(error)
                })
            }
        }
    }
</script>

<style>
</style>